//
// Created by francklinson on 2021/5/24.
//
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
class Solution {
public:
    int maximumWealth(vector<vector<int>>& accounts) {
        int ans = 0;
        for(auto &x:accounts){
            int temp = accumulate(x.begin(),x.end(),0);
            ans = max(ans,temp);
        }
        return ans;
    }
};

int main()
{
    vector<vector<int>>accounts{{1,2,3},{3,2,2}};
    Solution sol;
    cout << sol.maximumWealth(accounts) << endl;
    return 0;
}